<?php
	require_once('database.php');
	$user = $_POST['user'];
	$proj = $_POST['proj'];
	$acc = $_POST['accepted'];
	if($acc == 1)	{
		acceptProjectInvitation($proj, $user, date('U'));
	}	else	{
		rejectProjectInvitation($proj, $user, date('U'));
	}
?>